This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 22, 2013, 11:04 AM
8 Posts

Open View Column calculated link in new Tab

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: javascript,x pages,view panel,viewcolumn
  • Replies: 1
I am trying to open a calculated view column link in new tab. I have tried some ways mentioned in this forum but I am not able to get through. Please find my attached code for the column.

 

<xp:viewColumn columnName="$5" id="viewColumn1"
            displayAs="link">

            <xp:this.pageUrl><![CDATA[#{javascript:try{
    var row = getComponent("viewPanel1").getChildren().toArray();
    var va= row[5].getValue();
    var href = "some html file name";
    return href+"?confId="+va;
}catch(e){
   
}
}]]></xp:this.pageUrl> 

 

I have tried using xp:link and then providing the page url But i am not able to get solution. Please help. 
Apr 24, 2013, 2:46 PM
366 Posts
Re: Open View Column calculated link in new Tab
 To open in a new tab you would have to include a 'target' attribute of _top or _blank.  the browser settings would determine if it opened in a new tab or a new page

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal